package com.xzzz.backend.blog;

import com.xzzz.common.base.BaseConstants;
import com.xzzz.irda.auth.server.EnableAuthServer;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xzzz
 * @ignore 不生产该类API文档
 */
@Slf4j
@EnableAsync
@RestController
@EnableAuthServer
@EnableScheduling
@SpringBootApplication
@MapperScan(annotationClass = Mapper.class)
public class BlogApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(BlogApplication.class, args);
            BaseConstants.desc();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
